package net.hn.hnms.biz.dust.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * 智呈物联 pan'sx
 * 2022/10/19 16:14
 * 1.0 version
 */
//@Entity
@Table(name = "dwd_fcfz_his_sensormonitor", schema = "fcfz", catalog = "huaneng-safety")
public class DwdFcfzHisSensormonitorEntity {
    private String mineCode;
    private String pointCode;
    private String pointName;
    private Timestamp dataTime;
    private BigDecimal pointValue;
    private String pointValueType;
    private String pointStatusCode;
    private String pointStatusName;
    private String valueUnit;
    private Timestamp createTime;

    @Basic
    @Column(name = "mine_code")
    public String getMineCode() {
        return mineCode;
    }

    public void setMineCode(String mineCode) {
        this.mineCode = mineCode;
    }

    @Basic
    @Column(name = "point_code")
    public String getPointCode() {
        return pointCode;
    }

    public void setPointCode(String pointCode) {
        this.pointCode = pointCode;
    }

    @Basic
    @Column(name = "point_name")
    public String getPointName() {
        return pointName;
    }

    public void setPointName(String pointName) {
        this.pointName = pointName;
    }

    @Basic
    @Column(name = "data_time")
    public Timestamp getDataTime() {
        return dataTime;
    }

    public void setDataTime(Timestamp dataTime) {
        this.dataTime = dataTime;
    }

    @Basic
    @Column(name = "point_value")
    public BigDecimal getPointValue() {
        return pointValue;
    }

    public void setPointValue(BigDecimal pointValue) {
        this.pointValue = pointValue;
    }

    @Basic
    @Column(name = "point_value_type")
    public String getPointValueType() {
        return pointValueType;
    }

    public void setPointValueType(String pointValueType) {
        this.pointValueType = pointValueType;
    }

    @Basic
    @Column(name = "point_status_code")
    public String getPointStatusCode() {
        return pointStatusCode;
    }

    public void setPointStatusCode(String pointStatusCode) {
        this.pointStatusCode = pointStatusCode;
    }

    @Basic
    @Column(name = "point_status_name")
    public String getPointStatusName() {
        return pointStatusName;
    }

    public void setPointStatusName(String pointStatusName) {
        this.pointStatusName = pointStatusName;
    }

    @Basic
    @Column(name = "value_unit")
    public String getValueUnit() {
        return valueUnit;
    }

    public void setValueUnit(String valueUnit) {
        this.valueUnit = valueUnit;
    }

    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DwdFcfzHisSensormonitorEntity that = (DwdFcfzHisSensormonitorEntity) o;
        return Objects.equals(mineCode, that.mineCode) &&
                Objects.equals(pointCode, that.pointCode) &&
                Objects.equals(pointName, that.pointName) &&
                Objects.equals(dataTime, that.dataTime) &&
                Objects.equals(pointValue, that.pointValue) &&
                Objects.equals(pointValueType, that.pointValueType) &&
                Objects.equals(pointStatusCode, that.pointStatusCode) &&
                Objects.equals(pointStatusName, that.pointStatusName) &&
                Objects.equals(valueUnit, that.valueUnit) &&
                Objects.equals(createTime, that.createTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(mineCode, pointCode, pointName, dataTime, pointValue, pointValueType, pointStatusCode, pointStatusName, valueUnit, createTime);
    }
}
